<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
<form action="${contextPath }/admin/article/update.do" method="post">
<table width="100%">
	<tbody>
		<c:if test="${obj==null}">
			<tr>
				<td>标题</td><td><input name="article.title"/></td>
			</tr>
			<tr>
				<td>关键字</td><td><input name="article.keywords"/></td>
			</tr>
			<tr>
				<td>内容</td><td><textarea id="content-box" name="article.content" cols="80" rows="30"></textarea></td>
			</tr>
		</c:if>
		<c:if test="${obj!=null}">
			<tr>
				<td>编号</td><td>${obj.id }<input type="hidden" name="article.id" value="${obj.id}"/></td>
			</tr>
			<tr>
				<td>标题</td><td><input name="article.title" value="${obj.title }"/></td>
			</tr>
			<tr>
				<td>关键字</td><td><input name="article.keywords" value="${obj.keywords }"/></td>
			</tr>
			<tr>
				<td>内容</td><td><textarea id="content-box" name="article.content" rows="30" cols="80">${obj.content }</textarea></td>
			</tr>
		</c:if>
		<tr>
			<td><button type="submit">提交</button></td>
		</tr>		
	</tbody>
</table>
</form>
<script src="${contextPath }/kindeditor/kindeditor-min.js" type="text/javascript"></script>
<script type="text/javascript">
KE.show({
	id:"content-box"
});
</script>